package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ConfigAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ConfigAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ConfigPageAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.ConfigUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.ConfigAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.ConfigPageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/config")
public interface IConfigServiceRemote {

    @PostMapping(value = "list")
    ResponseData<ConfigPageAResp> list(RequestData<ConfigPageAReq> requestData);

    @PostMapping(value = "detail")
    ResponseData<ConfigAResp> detail(RequestData<ConfigAReq> requestData);

    @PostMapping(value = "update")
    ResponseData update(RequestData<ConfigUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<ConfigAResp> add(RequestData<ConfigAddAReq> requestData);

}
